package com.lhj.xxsc.order.feign;

import com.xxsc.common.to.SkuHasStockVo;
import com.xxsc.common.utils.R;
import com.lhj.xxsc.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 罗惠江
 * @version 1.0
 * @email 1511619294@qq.com
 * @date 2021/1/5 12:42
 */
@FeignClient("xxsc-ware")
public interface WmsFeignService {
	@PostMapping("/ware/waresku/hasstock")
	List<SkuHasStockVo> getSkusHasStock(@RequestBody List<Long> skuIds);

	@GetMapping("/ware/wareinfo/fare")
	R getFare(@RequestParam("addrId") Long addrId);

	@PostMapping("/ware/waresku/lock/order")
	public R orderLockStock(@RequestBody WareSkuLockVo vo);
}
